#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/9/14 10:34
@desc
"""
from wxpy import Bot

bot = Bot(cache_path="D:\iProject\myPython\com\\teradata\wechat\wxpy\wxpy.pkl")

#获取好友列表(包括自己)
my_friends = bot.friends(update=False)
# 微信昵称
nick_name = ''
# 微信个性签名
wx_signature = ''
for friend in my_friends:
    # 微信昵称：NickName
    nick_name = nick_name + friend.raw['NickName']
    # 个性签名：Signature
    wx_signature = wx_signature + friend.raw['Signature']

nick_name = jiebaclearText(nick_name)
wx_signature = jiebaclearText(wx_signature)
make_wordcloud(nick_name,1)
make_wordcloud(wx_signature,2)